R/Dashboard_Menu/InputTab/Back End/InputTab_B.R

Defines functions InputTabServer

library(shinydashboard)
library(shiny)

InputTabServer <- function(id) {
  moduleServer(
    id,
    function(input, output, session){
      data <- reactive({
        req(input$file1)
        inFile <- input$file1
        print(inFile$datapath)
        read.csv(inFile$datapath)
      })

      ########## Displays top 5 rows of the imported csv #############
      output$head <- DT::renderDataTable({
        data() # input$n,
      },filter =  'top',
      options = list(scrollX = TRUE)
      )

      return(data)
    }
  )
}
dwarak98/seer documentation built on April 4, 2021, 8:22 a.m.